<include file="Public:header" />
<div class="row">
  

<volist name="list" id="vo">

<div class="col-sm-6 col-md-4">
    <div class="thumbnail">
      <img src="__PUBLIC__{$vo.img_url}" alt="...">
      <div class="caption">
        <h3>{$vo.title}</h3>
        
        
        <form action="" method="post">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td align="center">开通</td>
      <td width="40%;"><div class="input-group input-group-sm">
      <span class="input-group-btn">
        <button style="margin-right:-2px;" class="btn btn-default sub_" type="button">-</button>
      </span>
      <input id="total_" class="form-control cartNum" style="text-align:center; box-shadow:none;" type="text" name="num" value="1">
    
       
      
      <span class="input-group-btn">
        <button class="btn btn-default add_" type="button">+</button>
      </span>
      
      
      
    </div></td>
      <td align="center">个月</td>
    </tr>
  </tbody>
</table>

        
    
    
    
    
    
        <br>

<input type="hidden" name="siteid" value="{$vo.id}">
<a href="/{$vo.id}" target="_blank" class="btn btn-default">预览</a>
   <button class="btn btn-success" type="submit">立即支付开通</button>
</form>
      </div>
    </div>
  </div>

</volist></div>

<script>
$('.add_').click(function(e) {
	var val = $(this).parent().prev('input').eq(0).val()*1;
	$(this).parent().prev('input').eq(0).val(val + 1);
	
	
});
$('.sub_').click(function(e) {
    var val = $(this).parent().next('input').eq(0).val()*1;
	if(val > 1){
		$(this).parent().next('input').eq(0).val(val - 1);
	}
});



</script>
<include file="Public:footer" />